package com.dhcc.sds.ws.AddVteOrder;

import javax.xml.rpc.ServiceException;
import java.rmi.RemoteException;

public class TestMain {

	public static void main(String[] args) {
		AddVteOrderWebServiceLocator locator = new AddVteOrderWebServiceLocator();
		String EpisodeID = "315"; //就诊号
		String LocDr = null;//科室ID 最好加上 不能为""否则传过去之后为0
		String UserDr = null;//用户ID
		String OrderList = "1^311||1^^^^^^^^^^N^^^^#2^312||1^^^^^^^^^^N^^^^#";//医嘱项集合 只改前两个参数序号和医嘱项id
		try {
			AddVteOrderWebServiceSoap soap= locator.getAddVteOrderWebServiceSoap("127.0.0.1", "dthealth/web");
			String backInfo = soap.addVteOrder(EpisodeID, LocDr, UserDr, OrderList);
			System.err.println("backInfo:"+backInfo);
		} catch (ServiceException e) {
			e.printStackTrace();
		} catch (RemoteException e) {
			e.printStackTrace();
		}
	}
}
